<%@ page language="java" import="java.util.*,com.entity.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">

  <head>
   	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/sorttable.js"></script>
<script src="js/main.js"></script>
<script src="js/qy.js"></script>
  </head>
   
  <body>
  <%Dlyh dlyh =(Dlyh )request.getSession().getAttribute("dlyh");
   if(!dlyh.getZd().getTypename().endsWith("市")&&!dlyh.getZd().getParentid().equals(745)&&!dlyh.getZd().getId().equals(745)){ %>
   <input type="button" value="添加调动信息" onclick="location='ryddGet.do?uid=${ryzl.id}'"/><%} %>
<div style="display: none;" id="PageHeader" class="PageHeader"></div>

<table class="TableTop" width="100%">
  <tbody><tr>
      <td class="left"></td>
      <td class="center subject"><span style="float:right">${fn:length(list)}条数据</span>
         人员调动-${ryzl.xm}</td>
      <td class="right"></td>
   </tr>
</tbody></table>

  <pg:pager url="ryddList.do" index="half-full" maxPageItems = "10" 
  maxIndexPages="10" isOffset = "<%=false%>" 
  export = "pageOffset,currentPageNumber=pageNumber" 
  scope = "request">
  <pg:param name="uid"  value="${ryzl.id}" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="sortable TableBlock no-top-border">
<thead>
  <tr class="title_text">
    <td align="center" class="TableData" onclick="this.blur(); return sortTable('offTblBdy',  1, true);">序号</td>
    <td align="center" class="TableData" onclick="this.blur(); return sortTable('offTblBdy',  2, true);">姓名</td>
    <td align="center" class="TableData">调动日期</td>
    <td align="center" class="TableData">调前部门</td>
    <td align="center" class="TableData">调前职位</td>
    <td align="center" class="TableData">调后部门</td>
    <td align="center" class="TableData">调后职位</td>
    <td align="center" class="TableData">调动原因</td>
    <td align="center" class="TableData">备注</td>
    <td align="center" class="TableData">操作</td>
  </tr>
  </thead>
  <TBODY >
  <c:set var="bb" value="yfxm" />
  <c:forEach var="l" items="${list}">
  <pg:item>
  <tr>
    <td align="center" class="TableData">${l.id}</td>
    <td align="center" class="TableData">${l.ryzl.xm}</td>
    <td align="center" class="TableData">${l.ddrqString}</td>
    <td align="center" class="TableData">${l.zdByDqbmbhString} </td>
    <td align="center" class="TableData">${l.zdByDqzwbhString}</td>
    <td align="center" class="TableData">${l.zdByDhbmbhString}</td>
    <td align="center" class="TableData">${l.zdByDhzwbhString}</td>
    <td align="center" class="TableData">${l.ddyy}</td>
    <td align="center" class="TableData">${l.bz}</td>
    <td align="center" class="TableData">
    <%if((dlyh.getZd().getTypename().endsWith("县")||dlyh.getZd().getTypename().endsWith("区")||dlyh.getZd().getTypename().equals("武安市"))&&!dlyh.getZd().getTypename().equals("工业园区"))
    { %>
    <a href="ryddDelete.do?id=${l.id}">删除</a>/  <%} 
    if((dlyh.getZd().getTypename().endsWith("市")&&dlyh.getZd().getParentid().equals(745))||dlyh.getZd().getId().equals(745)){%>
 				更新<%}else{ %>
    <a href="ryddGet.do?id=${l.id}&uid=${l.ryzl.id}">修改</a><%} %>
    </td>
  </tr>
  </pg:item>
  </c:forEach>
  </TBODY>
</table>

<pg:index>
    <center>
    <table border=0 cellpadding=5  cellspacing=0 style="font-size:12px">
    <tr align=center valign=top>
    <td valign=bottom></td>
    <pg:prev ifnull="true">
      <% if (pageUrl != null) { %>
        <td align=right><A HREF="<%=pageUrl%>&pageNo=<%=pageNumber%>">上一页<br>
        </A></td>
      <% } else { %>
        <td>上一页</td>
      <% } %>
    </pg:prev>
    <pg:pages>
      <% if (pageNumber == currentPageNumber) { %>
        <td>
        <font color=#A90A08><%= pageNumber %></font></td>
      <% } else { %>
        <td><A HREF="<%=pageUrl%>&pageNo=<%=pageNumber%>">
        <%=pageNumber%></A></td>
      <% } %>
    </pg:pages>
    <pg:next ifnull="true">
      <% if (pageUrl != null) { %>
        <td><A HREF="<%=pageUrl%>&pageNo=<%=pageNumber%>">下一页<br></A></td>
      <% } else { %>
        <td>下一页</td>
      <% } %>
    </pg:next>
    </tr>
    </table>
    </center>
  </pg:index>
  
  </pg:pager>
  
  
  </body>
</html>